#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    yy=new Thread;
    yy->start();//启动线程
    yy->stopped=1;//初始化变量
    yy->write_rs=0;
    yy->read_rs=0;
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::writeThread()
{

}

void MainWindow::readThread()
{

}

void MainWindow::closeThread()
{

}

void MainWindow::display()
{

}
